package demo1;

abstract public class Person {
    public String name;
    public int age;

    public Person(String name, int age) {//抽象类无法直接使用构造方法需要使用子类进行初始化
        this.name = name;
        this.age = age;
    }
}

class Student extends Person {

    public Student() {
        super("zhangsan", 18);
    }
}
